<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/page/common/taglibs.jsp" %>
<html>
<head>
    <title>Title</title>
</head>
<script type="text/javascript">
    function insert(){
        var index = layer.load(1);
        $.post(
            "${ctx}/exam/insertUser",
            $("#fm").serialize(),
            function(result){
                layer.close(index);
                if(result.code !="200"){
                    layer.msg(result.msg,{icon:0.5});
                    return;
                }
                parent.location.href="${ctx}/exam/toShow";
            }
        )
    }
</script>
<body>
<form id="fm">
  考生：<input type="text" name="userName"/><br/>
       <input type="hidden" name="examId" value="${examId}"/>
    <input type="button" value="xinzeng" onclick="insert()"/>
</form>
</body>
</html>
